using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Thaire.Investment.Domains.Transaction
{
   
    public class LoansExtrainstallment 
    {
        #region Properties
              // LOANS_EXTRAINSTALLMENT_ID
        public virtual int LoansExtrainstallmentID { set; get; }
      // LOANS_HEADER_ID
        public virtual int? LoansHeaderID { set; get; }
      // INTEREST_ID
        public virtual int? InterestID { set; get; }
      // AMORTIZE_ID
        public virtual int? AmortizeID { set; get; }
      // NEW_INSTALLMENT
        public virtual decimal? NewInstallment { set; get; }
      // EXTRAINSTALLMENT_DATE
        public virtual DateTime? ExtrainstallmentDate { set; get; }
      // EXTRAINSTALLMENT_RATE
        public virtual decimal? ExtrainstallmentRate { set; get; }
      // CLOSE_ACCOUNT_DATE
        public virtual DateTime? CloseAccountDate { set; get; }
      // CLOSE_ACCOUNT_INTEREST
        public virtual decimal? CloseAccountInterest { set; get; }
      // CLOSE_ACCOUNT_PRINCIPLE
        public virtual decimal? CloseAccountPrinciple { set; get; }
      // CLOSE_ACCOUNT_TOTAL
        public virtual decimal? CloseAccountTotal { set; get; }
      // CREATE_DATE
        public virtual DateTime? CreateDate { set; get; }
      // CREATE_BY
        public virtual String CreateBY { set; get; }
      // MODIFY_DATE
        public virtual DateTime? ModifyDate { set; get; }
      // MODIFY_BY
        public virtual String ModifyBY { set; get; }

        #endregion

        

        public override bool Equals(object obj)
        {
            if(obj == null)
                return false;
            if(obj.GetType() != typeof(LoansExtrainstallment) && !(obj is LoansExtrainstallment))
                return false;
            return ToString().Equals(obj.ToString());
        }

        public override int GetHashCode()
        {
            return ToString().GetHashCode();
        }

        public override string ToString()
        {
            return string.Format("{0}",LoansExtrainstallmentID);
        }

    }


}